package com.yaodian100.ec.order.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.yaodian100.core.common.entity.BaseEntity;

@Entity
@Table(name = "EC_ORDER_PRIZE")
public class OrderPrize extends BaseEntity {

	private static final long serialVersionUID = -9092381455934936206L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_order_prize")
	@SequenceGenerator(name = "seq_ec_order_prize", sequenceName = "SEQ_EC_ORDER_PRIZE")
	@Column(name = "prize_id")
	private Long prizeId;

	@Column(name = "member_id", length = 10)
	private String memberId;

	@Column(name = "login_id", length = 100)
	private String loginId;

	@Column(name = "prize_mobile", length = 20)
	private String prizeMobile = "";

	@Column(name = "prize_place", length = 20)
	private String prizePlace = "";

	@Column(name = "prize_ip", length = 100)
	private String prizeIp;

	@Column(name = "tuangou_id")
	private Long tuangouId;

	@Column(name = "product_id", length = 10)
	private String productId;

	@Column(name = "PROMOTE_NAME", length = 300)
	private String promoteName;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "order_date")
	private Date orderDate;

	/**
	 * 抽奖状态 00:进行中 01:已结束
	 */
	@Column(name = "order_st", length = 6)
	private String orderSt;

	@Column(name = "channel", length = 100)
	private String channel;

	@Column(name = "channel_seq")
	private int channelSeq;

	@Column(name = "CHANNEL_CHILD", length = 500)
	private String channel_child;

	@Column(name = "prize_price", columnDefinition = "numeric(10,2)")
	private BigDecimal prizePrice = BigDecimal.ZERO;

	@Column(name = "prod_name", length = 500)
	private String prodName;

	public Long getPrizeId() {
		return prizeId;
	}

	public void setPrizeId(Long prizeId) {
		this.prizeId = prizeId;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getPrizeMobile() {
		return prizeMobile;
	}

	public void setPrizeMobile(String prizeMobile) {
		this.prizeMobile = prizeMobile;
	}

	public String getPrizePlace() {
		return prizePlace;
	}

	public void setPrizePlace(String prizePlace) {
		this.prizePlace = prizePlace;
	}

	public String getPrizeIp() {
		return prizeIp;
	}

	public void setPrizeIp(String prizeIp) {
		this.prizeIp = prizeIp;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getPromoteName() {
		return promoteName;
	}

	public void setPromoteName(String promoteName) {
		this.promoteName = promoteName;
	}

	public Date getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}

	public String getOrderSt() {
		return orderSt;
	}

	public void setOrderSt(String orderSt) {
		this.orderSt = orderSt;
	}

	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public int getChannelSeq() {
		return channelSeq;
	}

	public void setChannelSeq(int channelSeq) {
		this.channelSeq = channelSeq;
	}

	public String getChannel_child() {
		return channel_child;
	}

	public void setChannel_child(String channelChild) {
		channel_child = channelChild;
	}

	public BigDecimal getPrizePrice() {
		return prizePrice;
	}

	public void setPrizePrice(BigDecimal prizePrice) {
		this.prizePrice = prizePrice;
	}

	public String getProdName() {
		return prodName;
	}

	public void setProdName(String prodName) {
		this.prodName = prodName;
	}

	public Long getTuangouId() {
		return tuangouId;
	}

	public void setTuangouId(Long tuangouId) {
		this.tuangouId = tuangouId;
	}
}
